package com.cyou.nad.dao;

import java.io.Serializable;


public interface Pagination extends Serializable{

	public static final int DEFAULT_PAGE_SIZE = 50;
	
	/**
	 * 取该页当前页码,页码从1开始.
	 */
	public int getCurrentPageNo();

	/**
	 * 取每页数据容量.
	 */
	public int getPageSize();

	/**
	 * 取总记录数.
	 */
	public int getTotalCount();

	/**
	 * 取总页数.
	 */
	public int getTotalPageCount();

	/**
	 * 该页是否有下一页.
	 */
	public boolean hasNextPage();

	/**
	 * 该页是否有上一页.
	 */
	public boolean hasPreviousPage();

	public Integer getTotal();
	
}
